<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/">
  <Script file="Frame2.lua" />
  <Frame name="OutfitterInputFrameTemplate" hidden="false" virtual="true">
    <Layers>
      <Layer level="BACKGROUND">
        <Texture name="$parentTopLeft" file="Interface\Common\Common-Input-Border">
          <Size>
            <AbsDimension x="6" y="6"/>
          </Size>
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="-2" y="2"/>
              </Offset>
            </Anchor>
          </Anchors>
          <TexCoords left="0" right="0.046875" top="0" bottom="0.1875"/>
        </Texture>
        <Texture name="$parentBottomLeft" file="Interface\Common\Common-Input-Border">
          <Size>
            <AbsDimension x="6" y="6"/>
          </Size>
          <Anchors>
            <Anchor point="BOTTOMLEFT">
              <Offset>
                <AbsDimension x="-2" y="-2"/>
              </Offset>
            </Anchor>
          </Anchors>
          <TexCoords left="0" right="0.046875" top="0.4375" bottom="0.625"/>
        </Texture>
        <Texture name="$parentTopRight" file="Interface\Common\Common-Input-Border">
          <Size>
            <AbsDimension x="6" y="6"/>
          </Size>
          <Anchors>
            <Anchor point="TOPRIGHT">
              <Offset>
                <AbsDimension x="2" y="2"/>
              </Offset>
            </Anchor>
          </Anchors>
          <TexCoords left="0.953125" right="1.0" top="0" bottom="0.1875"/>
        </Texture>
        <Texture name="$parentBottomRight" file="Interface\Common\Common-Input-Border">
          <Size>
            <AbsDimension x="6" y="6"/>
          </Size>
          <Anchors>
            <Anchor point="BOTTOMRIGHT">
              <Offset>
                <AbsDimension x="2" y="-2"/>
              </Offset>
            </Anchor>
          </Anchors>
          <TexCoords left="0.953125" right="1.0" top="0.4375" bottom="0.625"/>
        </Texture>
        <Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
          <Size>
            <AbsDimension x="6" y="0"/>
          </Size>
          <Anchors>
            <Anchor point="TOP" relativeTo="$parentTopLeft" relativePoint="BOTTOM"/>
            <Anchor point="BOTTOM" relativeTo="$parentBottomLeft" relativePoint="TOP"/>
          </Anchors>
          <TexCoords left="0" right="0.046875" top="0.1875" bottom="0.4375"/>
        </Texture>
        <Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
          <Size>
            <AbsDimension x="6" y="0"/>
          </Size>
          <Anchors>
            <Anchor point="TOP" relativeTo="$parentTopRight" relativePoint="BOTTOM"/>
            <Anchor point="BOTTOM" relativeTo="$parentBottomRight" relativePoint="TOP"/>
          </Anchors>
          <TexCoords left="0.953125" right="1.0" top="0.1875" bottom="0.4375"/>
        </Texture>
        <Texture name="$parentTop" file="Interface\Common\Common-Input-Border">
          <Size>
            <AbsDimension x="0" y="6"/>
          </Size>
          <Anchors>
            <Anchor point="LEFT" relativeTo="$parentTopLeft" relativePoint="RIGHT"/>
            <Anchor point="RIGHT" relativeTo="$parentTopRight" relativePoint="LEFT"/>
          </Anchors>
          <TexCoords left="0.046875" right="0.953125" top="0" bottom="0.1875"/>
        </Texture>
        <Texture name="$parentBottom" file="Interface\Common\Common-Input-Border">
          <Size>
            <AbsDimension x="0" y="6"/>
          </Size>
          <Anchors>
            <Anchor point="LEFT" relativeTo="$parentBottomLeft" relativePoint="RIGHT"/>
            <Anchor point="RIGHT" relativeTo="$parentBottomRight" relativePoint="LEFT"/>
          </Anchors>
          <TexCoords left="0.046875" right="0.953125" top="0.4375" bottom="0.625"/>
        </Texture>
        <Texture name="$parentCenter" file="Interface\Common\Common-Input-Border">
          <Anchors>
            <Anchor point="TOPLEFT" relativeTo="$parentTopLeft" relativePoint="BOTTOMRIGHT"/>
            <Anchor point="TOPRIGHT" relativeTo="$parentTopRight" relativePoint="BOTTOMLEFT"/>
            <Anchor point="BOTTOMLEFT" relativeTo="$parentBottomLeft" relativePoint="TOPRIGHT"/>
            <Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomRight" relativePoint="TOPLEFT"/>
          </Anchors>
          <TexCoords left="0.046875" right="0.953125" top="0.1875" bottom="0.4375"/>
        </Texture>
      </Layer>
    </Layers>
  </Frame>

  <EditBox name="OutfitterInputBoxTemplate" enableKeyboard="true" inherits="OutfitterInputFrameTemplate" virtual="true">
    <Layers>
      <Layer level="BACKGROUND">
        <FontString name="$parentLabel" inherits="GameFontNormalSmall" text="" justifyH="RIGHT">
          <Anchors>
            <Anchor point="RIGHT" relativePoint="LEFT">
              <Offset>
                <AbsDimension x="-12" y="0"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
        <FontString name="$parentSuffix" inherits="GameFontNormalSmall" text="" justifyH="LEFT">
          <Anchors>
            <Anchor point="LEFT" relativePoint="RIGHT">
              <Offset>
                <AbsDimension x="5" y="0"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
    <Scripts>
      <OnLoad>
        Outfitter.InputBox_OnLoad(0)
      </OnLoad>
      <OnTabPressed>
        Outfitter.InputBox_TabPressed()
      </OnTabPressed>
      <OnEscapePressed>
        MCDebugLib:TestMessage("OnEscapePressed")
        this:ClearFocus()
      </OnEscapePressed>
      <OnEditFocusLost>
        MCDebugLib:TestMessage("OnEditFocusLost")
        -- this:HighlightText(0, 0)
      </OnEditFocusLost>
      <OnEditFocusGained>
        MCDebugLib:TestMessage("OnEditFocusGained")
        this:HighlightText()
      </OnEditFocusGained>
    </Scripts>
    <FontString inherits="ChatFontNormal"/>
  </EditBox>
</Ui>
